package cn.com.service;

import cn.com.dao.FoodMapper;
import cn.com.pojo.Food;
import cn.com.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FoodServiceImpl implements FoodService{
    @Resource
    private FoodMapper foodMapper;

    @Override
    public List<Food> find() {
        return foodMapper.find();
    }

    @Override
    public Food findById(Integer id) {
        return foodMapper.findById(id);
    }
}
